<?php

class Admin_Form_Payment_Edit extends My_FormAdmin {

    public function init() {
        parent::init();
        $this->setTitle($this->translate('XXX_ADMIN_PAYMENT_EDIT_FORM_TITLE'));
        $this->addElement('hidden', 'id');
        
        $options = array_merge(array('' => ''), Application_Model_DAO_Payment::getTranslatetPaymentStatuses());
        $status = new Zend_Form_Element_Select('status');
        $status->setLabel(_('XXX_ADMIN_PAYMENT_EDIT_FORM_STATUS_LABEL'));
        $status->setRequired();
        $status->setMultiOptions($options);
        $this->addElement($status);
        
        $logic = new Zend_Form_Element_Checkbox('perform_state_logic');
        $logic->setLabel(_('XXX_ADMIN_PAYMENT_EDIT_FORM_PERFORM_STATE_LOGIC_LABEL'));
        $this->addElement($logic);
        
        $comment = new Zend_Form_Element_Textarea('comment');
        $comment->setLabel(_('XXX_ADMIN_PAYMENT_EDIT_FORM_COMMENT_LABEL'));
        $this->addElement($comment);
        
        $this->addSubmitElement();
        
    }

}
